package com.firewolf.spring.aop;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * 环绕通知
 * @author lx
 *
 */
public class Arround {
	
	public void watchPerform(ProceedingJoinPoint joinPoint){
		System.out.println("找位置坐下");
		System.out.println("关掉手机");
		try{
			long start = System.currentTimeMillis();
			joinPoint.proceed();
			long end = System.currentTimeMillis();
			System.out.println("表演总时间为："+(end-start));
			System.out.println("表演相当精彩，鼓掌");
			System.out.println("表演结束了，离开吧！");
		}catch(Throwable e){
			System.out.println("表演好垃圾");
		}
	}
}
